-- GENERATED SPELL FOR [Zim'Torga Defender] --


function spell0_28387(pUnit, Event) --@Ice Boulder,n/a--
pUnit:FullCastSpellOnTarget(54673,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28387', 1000, 1)
end

function Sorts_28387(pUnit, Event)
local choix_sorts_28387 = math.random(0, 0)
if choix_sorts_28387 == 0 then
pUnit:RegisterEvent('spell0_28387', 1, 1)
end
end

function mob28387_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_28387', math.random(1500, 3000), 1)
end

function mob28387_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28387_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28387_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(28387, 1, 'mob28387_Action')
RegisterUnitEvent(28387, 2, 'mob28387_Leave')
RegisterUnitEvent(28387, 3, 'mob28387_Kill')
RegisterUnitEvent(28387, 4, 'mob28387_Die')
